<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8"> 
<meta name="keywords" content="<?php echo $cname_data;?>,<?php echo $cname_data;?>价格"/>
    <meta name="description" content="【<?php echo $cname_data;?>】苏宁易购提供姚踏 <?php echo $g_data['gname'];?>,<?php echo $cname_data;?>正品行货,保证低价,包括<?php echo $cname_data;?>报价,参数,评价,图片,评测等信息,网购<?php echo $cname_data;?>上苏宁！"/>
<title>【<?php echo $cname_data;?>】<?php echo $g_data['gname'];?>【价格 图片 品牌 报价】-苏宁易购</title>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" href="http://localhost/project/shop/Static/Index/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/global.css" />

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/common.js"></script> 

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/scrolltopcontrol.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/DD_belatedPNG.js"></script>
<script>
    DD_belatedPNG.fix(".img_logo", "img");
</script>
<![endif]-->
</head>
<body>
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--S header-->
	<div class="header">
		<div class="top_c">
			<div class="top_c_r">
				<ul class="top_list">

					    <?php if(!isset($_SESSION['uname'])){ ?>
					<li class="li_bg">
						<a href="<?php echo U('Member/login');?>" class="a_login">登录</a>
						<a href="<?php echo U('Member/register');?>" class="a_reg">注册</a>
					</li>
					<?php }else{ ?>
					<li class="li_bg">
						<a href="<?php echo U('Member/member');?>" class="a_login"><?php echo $_SESSION['uname'];?></a>
						<a href="<?php echo U('Member/out');?>" class="a_reg">退出</a>
					</li>
					<?php } ?>
					 

					<li>  
						<a href="<?php echo U('Order/index');?>" class="a_show">我的订单</a> 
						<div class="in_hide">
							<a href="javascript:void(0)" class="a_hide">待支付</a>
							<a href="javascript:void(0)" class="a_hide">待收货</a>
							<a href="javascript:void(0)" class="a_hide">待评价</a>
							<a href="javascript:void(0)" class="a_hide">修改订单</a>  
						</div>

					</li>
					<li class="li_buy"><a href="<?php echo U('Cart/index');?>">购物车</a><span>    <?php if($_SESSION['cart']['goods']){ ?><?php echo $_SESSION['cart']['total_rows'];?><?php }else{ ?>0<?php } ?></span></li>
				</ul>
			</div>
		</div> 
	</div> 
	<!-- logo、搜索框等 -->
	<div class="logo_c">
		<a href="http://localhost/project/shop" class="logo"></a>
		<!-- <a class="logo1"></a>  -->
		<div class="search_box">
				<form id="searchForm" method="get" action="" name="searchForm"> 
					<input id="search_input" class="ui_input" type="text" value="服饰5折起" name="keyword"> 
					<input id="search_button" type="submit" value="">

					<div id="KeywordNew" class="g-search-hotwords">
						<input id="searchDefaultKeyword" type="hidden" key="" value="">
							<a href="http://localhost/project/shop/index.php/Index/List/index/cid/13" target="_blank" name="">
							<font style="color:#FF6600">衬衫</font>
						</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/14" target="_blank" name="">连衣裙</a> 
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/15" target="_blank" name="">针织衫</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/16" target="_blank" name="">T恤</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/17" target="_blank" name="">风衣</a>    
					</div>

				</form>
			</div>
		<div class="r_box"></div>

	</div>
	<!--S nav -->
	<div class="nav">
		<div class="nav_c">
			<dl class="c_dl">
				<dd>
					<a href="javascript:void(0)" class="a_dd_show">全部商品分类</a> 
					<div class="a_dd_box">

						<ul class="list_s">
							<li class="in_li"> 
								<div class="in_div1"><i id="i_bg0"></i><a href="javascript:void(0)">名品</a></div>
								<div class="in_div2"><a href="javascript:void(0)">今日上新</a></div> 
								
								<div class="li_in_hide">
									<p class="p_r_top"><a href="javascript:void(0)">名品特卖更多&gt</a></p>
									<div class="in_pp">
										<?php foreach ($b_data as $k=>$v){?>
											<a href="javascript:void(0)"><img src="http://localhost/project/shop/<?php echo $v['logo'];?>" alt=""></a>
										<?php }?>
									</div> 
								</div>
							</li>
						</ul>


						<?php foreach ($c_data as $k=>$v){?>
							<ul class="list_s">
								<li class="in_li"> 
									<div class="in_div1"><i id="i_bg<?php echo $v['cid'];?>"></i><a href="<?php echo U('List/index',array('cid'=>$v[cid]));?>"><?php echo $v['cname'];?></a></div>

									<?php foreach ($v['cate_s'] as $key=>$value){?>
										<div class="in_div2"><a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a></div>
									<?php }?>

									<div class="li_in_hide"> 
										<?php foreach ($v['son'] as $k_s=>$v_s){?>
											<a href="<?php echo U('List/index',array('cid'=>$v_s[cid]));?>" class="in_a_title"><?php echo $v_s['cname'];?></a>
											<div class="in_a_box">
													<?php foreach ($v_s['son'] as $key=>$value){?>
														<a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a> 
													<?php }?>
												</div> 
										<?php }?> 
									</div>
								</li>
							</ul>
						<?php }?> 


					</div> 
				</dd> 
				<dt><a href="http://localhost/project/shop" class="a_s">首页</a></dt>
				<?php foreach ($top_c_data as $key=>$value){?>
					<dt><a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>" class="a_s"><?php echo $value['cname'];?></a></dt>
				<?php }?> 
				<!-- <span class="span_new"></span> -->
				<!-- <span class="span_hot"></span> --> 
			</dl>
		</div>
	</div>   
	<!-- =========头部结束====================================== -->
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/show.css" />
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/show.js"></script>

<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/animate.min.css"/>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/jquery.hDialog.js"></script>
	<!-- =========头部结束====================================== --> 
<script type="text/javascript"> 
	var url = "<?php echo U('Show/getGoodsList');?>";
	var add_cart = "<?php echo U('Show/add_cart');?>";
</script>
<div class="position">
<a href="http://localhost/project/shop">首页</a>&gt
	<?php foreach ($path as $k=>$v){?>
		<a href="<?php echo U('List/index',array('cid'=>$k));?>"><?php echo $v;?></a>&gt
	<?php }?><?php echo $g_data['gname'];?>
</div> 

<div class="main_show">
	<!--商品展示-->
	<div class="m_show">
		<!--左侧-->
		<div class="m_show_l"> 

<div id="tFocus">
	<div class="prev" id="prev"></div>
	<div class="next" id="next"></div>
 
		<ul id="tFocus-pic" class="box"> 
			<?php foreach ($gd_data['medium'] as $k=>$v){?>
				<li><img src="http://localhost/project/shop/<?php echo $v;?>" width="338" height="340" alt="" /></li> 
			<?php }?></ul>  

	<div id="tFocusBtn">
		<a href="javascript:void(0);" id="tFocus-leftbtn"></a>
		<div id="tFocus-btn">
			<ul>
				<?php foreach ($gd_data['small'] as $k=>$v){?>
					<li><img src="http://localhost/project/shop/<?php echo $v;?>" width="87" height="57" alt="" /></li> 
				<?php }?>
				 
			</ul>
		</div>
		<a href="javascript:void(0);" id="tFocus-rightbtn"></a>
	</div>
</div><!--tFocus end-->

<script type="text/javascript">addLoadEvent(Focus());</script>

		
		</div>
		<!--右侧-->
		<div class="m_show_r">
			<h1 class="goods_title"><?php echo $g_data['gname'];?></h1>
			<div class="div_price">
				<p>商品价<span class="sp_1">￥</span><span class="sp_2"><?php echo $g_data['goods_price'];?>.00</span></p>
			</div>
			
			<!-- <dl class="dl_s">
				<dd>送至</dd>
				<dt>
					<div class="place">北京东城区</div>
				</dt>
			</dl> -->

			<?php foreach ($ta_spec_data as $k=>$v){?>
			<dl class="dl_s">
				<dd><?php echo $v['taname'];?></dd>
				<dt class="dt_color"> 
					<?php foreach ($v['spec'] as $k=>$v){?>
						<a href="javascript:void(0);" gaid='<?php echo $k;?>'><?php echo $v;?></a>
					<?php }?> 
				</dt>
			</dl>
			<?php }?> 

			<div class="set_box_no"></div> 
			<div class="set_box">
				<dl class="dl_s">
					<dd>购买数量</dd>
					<dt class="dt_num">
						<span class='s_reduce'></span>
							<input type="text" name='number' value='1' class='s_input'/>
							<input type="hidden" name="" value='1' class='h_input'>
						<span class='s_plus'></span>
					</dt>
				</dl> 
				<style type="text/css">
				.dt_checked span{
					margin-right: 20px;
				}
				</style>
				<dl class="dl_s">
					<dd>您已选择</dd>
					<dt class="dt_checked">
						<span class="span_1"></span>
						<span class="span_2"></span>
						<span class="span_3"></span> </dt> 
				</dl>
			</div>

			<dl class="dl_s">
				<dd></dd>
				<dt class="dt_ok">  
					<a href="    <?php if(!$_SESSION['uid']){ ?>javascript:void(0)<?php }else{ ?><?php echo U('Order/index');?><?php } ?>" class="a_buy a_buy_ok     <?php if(!$_SESSION['uid']){ ?>rotateInUpLeft dialog<?php } ?>"></a>
					<a href="javascript:void(0)" class="a_buy"></a>
				</dt>
			</dl>
			
			
			
		</div>
		
	</div> 

	<!-- 添加到购物车提示框 -->
	<div class="success" id="ok">
		<h4>提示</h4><i>x</i>
		<b></b><p><span class="info"></span>购物车里已有 <span class="total_rows"></span>种商品</p>
		<input type="button" value="再逛逛" class="quit" />
		<a href="<?php echo U('Cart/index');?>" target="_blank"><input type="button" value="去购物车结算" /></a>
	</div>

	<!-- 相同商品提示框 -->
	<div class="success" id="already">
		<h4>提示</h4><i>x</i>
		<b></b><p>购物车中已经有相同商品。您希望：</p>
		<input type="button" value="不要添加" class="quit" />
		<input type="button" value="多买一件" id="more" />
		<a href=""><input type="button" value="去购物车结算" /></a>
	</div>

	<!--商品详情-->
	<div class="m_details">
			<!--左侧-->
				<div class="m_details_l"> 

					<div class="hot_goods hot_goods_show">
						<div class="hot_title">云台热卖</div>
						<?php foreach ($rand_data as $k=>$v){?>
							<div class="hot_g_s">
								<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" ><img src="http://localhost/project/shop/<?php echo $v['pic'];?>" alt="<?php echo $v['gname'];?>" /></a>
								<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" class="h_goods_t"><?php echo $v['gname'];?></a>
								<p class="h_price">¥<?php echo $v['goods_price'];?></p>
							</div>
						<?php }?>
						
					</div>
			</div>
			<!--右侧-->
			<div class="m_details_r">
				
				<div class="slideTxtBox">
					<div class="hd">  
					<ul>
					  <li>商品详情</li>
					  <!-- <li>包装及参数</li>
					  <li> 评价（183）</li> --> 
					  <li>售后保障</li></ul>
					</div>
				  <div class="bd">
				    <ul><?php echo $gd_data['intro'];?></ul>
				    <!-- <ul><img src="http://localhost/project/shop/Static/Index/Images/f2.jpg" alt="" width='100%'/></ul> -->
				    
				    <!-- <ul>
<div class="bloglist">
	<ul class="arrow_box">

		<a href=""class="sy_a">
			<img src="http://localhost/project/shop/Upload/Content/15_09/25171443278378.jpg" width='40px' height='80px'>
			<p> title</p>
			<div class="div_in_con">content</div>
		</a>
		<span class="dateview">2014-1-1</span> 

	</ul> 
</div>
</ul>  -->
				    
<ul><?php echo $gd_data['service'];?></ul></div></div>

<style type="text/css">
.bloglist { width: 100%; margin: 0 auto; background: url(../images/r_title_bg.jpg) repeat-y 764px 0;overflow: hidden; }
.arrow_box { 
	background: #f8f8f8; box-shadow: 0px 1px 0px rgba(255,255,255,.1), inset 0px 1px 1px rgba(214, 214, 214, 0.7); width: 730px; border-radius: 6px; position: relative; padding: 30px 0; margin: 20px 0; }
.arrow_box img { width: 150px; float: left; margin: 0 20px 0 20px; }
.arrow_box p { 
	font-size: 16px;
	font-family: 微软雅黑;
	font-weight: 700;
	color: #7e7e7e;
	line-height: 24px;  
	padding: 0 10px 10px
}
.arrow_box .div_in_con {  
	padding: 0px 10px;
}
.arrow_box::before { content: ""; width: 0px; height: 0px; border-style: solid; border-width: 0px 0 20px 22px; border-color: transparent transparent transparent #fff; position: absolute; left: 730px; top: 23px; }/* 三角形 */
.arrow_box::after { content: ""; width: 10px; height: 10px; border-radius: 50%; position: absolute; left: 758px; top: 16px; background: #CCCCCE; border: 2px solid #fff; transition: all 0.5s; }/* 圆形 */
.arrow_box:hover::before { border-color: transparent transparent transparent #CECCCD }/* 三角形 */
.arrow_box:hover::after { border: #fff 2px solid; background: #ffaa00 }/* 圆形 */
.arrow_box:hover { background: #f4f2f2; color: #333; text-shadow: #f7f7f7 1px 1px 1px }
.dateview { position: absolute; 
	left: 788px; top: 20px; 
	width: 200px; line-height: 30px; 
	background: #ffaa00; 
	border-radius: 0px 40px; 
	text-align: center; color: #fff 
}
</style>
<script type="text/javascript">jQuery(".slideTxtBox").slide();</script></div></div></div>

<style type="text/css">
.in_tap{
	width:300px;height:270px;
	position: relative;　
}
.dl_l{
	width:300px;height:30px;
	background: #eee; 
}
.dl_l dt{
	width:100px;
	height:30px;　 
	float: left;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #aaa;
	text-align: center;
	margin-left: 10px;
}
.dl_l dt.dt_cur{
	border-top: 2px solid #f90; 
	background: #fff; 
	color: #f90;
}
	</style>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div id="HBox">
<div class="in_tap">
<dl class="dl_l">
	<dt class="dt_cur" style="line-height: 30px;">登录</dt>
	<dt style="line-height: 30px;">注册</dt>
</dl>

<div class="div_s" style="width:300px;height:240px;position: absolute;top:30px;display: block;">
	
	<form action="<?php echo U('Member/login');?>" method="post"> 
<ul class="list">
	<li>
		<strong>账号 </strong><div class="fl"><input type="text" name="username_login" value="" class="ipt username" /></div>

	</li>

	<li>

		<strong>密码  </strong>

		<div class="fl"><input type="password" name="password_login" value="" class="ipt" /></div>

	</li>
	<li>
		<input type="checkbox" name="on" id="" style="margin-left: 30px;"/> 自动登录  
	</li>　

	<li><input type="submit" value="" class="submitBtn" /></li>

</ul>
</form>

</div>

<div class="div_s" style="width:300px;height:240px;position: absolute;top:30px;display: none;">
	
	
	<form action="" method="post" onsubmit="return false;"> 
<ul class="list">
	<!--<li class="li_c">欢迎您登录</li>-->

	<li>

		<strong>账号 </strong>

		<div class="fl"><input type="text" name="nickname" value="" class="ipt nickname" /></div>

	</li>

	<li>

		<strong>密码  </strong>

		<div class="fl"><input type="password" name="pas1" value="" class="ipt" /></div>

	</li>
	<li>

		<strong>确认密码  </strong>

		<div class="fl"><input type="password" name="pas2" value="" class="ipt" /></div>

	</li> 
	
	<li>

		<strong>验证码  </strong>

		<div class="fl"><input type="text" name="code" value="" class="ipt" style="width: 80px;"/></div>

	</li> 
	

	<li><input type="submit" value="" class="submitBtn submitBtn2" /></li>

</ul>
</form>


	


</div>
</div>
</div>
	<script>
$(function(){
	var $el = $('.dialog');
	$el.hDialog();
	//返回顶部
	// $.goTop();
	//提交并验证表单
	$('.submitBtn').click(function() {
		var $username = $('.username');
		if($username.val() == ''){
			$.tooltip('用户名还没填呢...'); $phone.focus();
		}else{
			$.tooltip('登录成功',1000,true);
			setTimeout(function(){
				$el.hDialog('close',{box:'#HBox'},'<?php echo U('Order/index');?>');  //跳转链接
			},2000);

		}
	});
});

</script>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--S foot -->
<div class="foot2"> 
	<div class="foot2_c">
		<dl class="dl_f2">
			<dt class="dt_f2_s"><a href="http://www.houdunwang.com/">后盾网</a></dt> 
			<dt class="dt_f2_s"><a href="http://bbs.houdunwang.com/">后盾网论坛</a></dt>
			<dt class="dt_f2_s"><a href="http://www.baidu.com">百度</a></dt>
		</dl>
		<p class="p_w">Copyright © 2015-2015<span>***.com</span><a>易购</a>All Rights Reserved.<a>京ICP备********号</a></p>
		<img src="http://localhost/project/shop/Static/Index/Images/i_bg.jpg" alt="" class="in_img">
	</div>
</div>
</body>
</html>